# -*- encoding:utf-8 -*-
# @Time: 2022/11/22 21:42
# @Author : renyuxuan
# @Email: renyuxuan@maqu.com
# @File: celery_main.py
# @Software: PyCharm
from celery import Celery

#为celery 使用django配置文件践行设置
import os

os.environ.setdefault('DJANGO_SETTINGS_MODULE','renyuxuan_drf27.settings')
app = Celery('renyuxuan_drf27') #创建celery应用

app.config_from_object('celery_tasks.celery_config')#导入celery配置

#导入任务
app.autodiscover_tasks(['celery_tasks.email',])
